package com.declum.archon.chunk.streams;

import java.io.IOException;

import com.declum.archon.chunkserver.manager.disk.streams.ChunkInputStream;

import junit.framework.TestCase;

/**
 * JUnit test case for ChunkInputStreamTest
 */

public class ChunkInputStreamTest extends TestCase {

	public static void main(String[] args) {
		junit.textui.TestRunner.run(ChunkInputStreamTest.class);
	}

	public void testRead() throws IOException {
		ChunkInputStream in = new ChunkInputStream("C:\\temp\\clement.txt");
		byte[] data = new byte[1024];
		int count = in.read(data);
		System.out.println(count);
		System.out.println(new String(data, 0, count));
	}
}